package com.cormant.citracker;

import java.util.ArrayList;
import java.util.List;

import android.location.Location;

import com.google.android.gms.location.LocationListener;

public class CILocationListener implements LocationListener {

	private static final CILocationListener INSTANCE = new CILocationListener();
	private List<Location> locations;

	private CILocationListener() {
		locations = new ArrayList<Location>();
	}

	@Override
	public void onLocationChanged(Location arg0) {
		locations.add(arg0);
	}

	public static CILocationListener getInstance() {
		return INSTANCE;
	}

	public List<Location> getLocations() {
		return INSTANCE.locations;
	}
}
